package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name = "PRAXIS_ECHO")
public class EchoTBL implements Serializable
{

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long E_nummer;

    private String bezeichner;

    @Column(columnDefinition = "TEXT")
    private String text;

    @Temporal(javax.persistence.TemporalType.DATE)
    private Calendar datum;

    @ManyToOne
    @JoinColumn(name = "patientin_matricule_nummer", nullable = false)
    private CustomerTBL customer;

    public EchoTBL()
    {

    }

    public Long getE_nummer()
    {
	return E_nummer;
    }

    public void setE_nummer(Long befunde_nummer)
    {
	this.E_nummer = befunde_nummer;
    }

    public String getBezeichner()
    {
	return bezeichner;
    }

    public void setBezeichner(String bezeichner)
    {
	this.bezeichner = bezeichner;
    }

    public String getText()
    {
	return text;
    }

    public void setText(String text)
    {
	this.text = text;
    }

    public Calendar getDatum()
    {
	return datum;
    }

    public void setDatum(Calendar datum)
    {
	this.datum = datum;
    }

    public CustomerTBL getCustomer()
    {
	return customer;
    }

    public void setCustomer(CustomerTBL customer)
    {
	this.customer = customer;
    }

}
